<?php
class User_model extends CI_Model{
	function __construct(){
        // Call the Model constructor
        parent::__construct();
    }
    public function checkUserLogin($username, $password){
    	try{
    		$query = $this->db->query("CALL backend_CheckAdminLogin('$username', '$password')");
    		return $query->row();
    	}
    	catch(Exception $e){
    		log_message('error', $e->getMessage());
    	}
    }
}